﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Models
{
    /// <summary>
    /// 角色
    /// </summary>
    public class Role
    {
        /// <summary>
        /// 主键，自增长
        /// </summary>
        [XYD.Framework.Key]
        [XYD.Framework.Identity]
        public int id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 账号，0未启用，1已启用
        /// </summary>
        public int state { get; set; }
        
        /// <summary>
        /// 角色类别
        /// 10：管理员
        /// 20：客服
        /// 30：代理
        /// 40：自定义类别
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 推广者ID
        /// </summary>
        public int promoter_id { get; set; }
    }
}
